package com.glorious.gcontacts.model;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@SuppressWarnings("serial")
@PersistenceCapable
public class GoogleContactInfo implements Serializable
{
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private String authToken;

	@Persistent
	private String authTokenSecret;

	public GoogleContactInfo()
	{
		
	}
	
	public GoogleContactInfo(String authToken, String authTokenSecret)
	{
		this.authToken = authToken;
		this.authTokenSecret = authTokenSecret;
	}

	public Key getKey()
	{
		return key;
	}

	public void setKey(Key key)
	{
		this.key = key;
	}

	public String getAuthToken()
	{
		return authToken;
	}

	public void setAuthToken(String authToken)
	{
		this.authToken = authToken;
	}

	public String getAuthTokenSecret()
	{
		return authTokenSecret;
	}

	public void setAuthTokenSecret(String authTokenSecret)
	{
		this.authTokenSecret = authTokenSecret;
	}
}
